#!/usr/bin/python
# coding:utf-8
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from config import DevelopMode, ProductMode
from game import create_app, db, models

app = create_app(DevelopMode)

manager = Manager(app)  # 创建迁移命令
Migrate(app, db)
manager.add_command("db", MigrateCommand)

if __name__ == '__main__':
    print(app.url_map)
    manager.run()
